<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>ECharts</title>
    <!-- 引入刚刚下载的 ECharts 文件 -->
    <script src="./lib/echarts.min.js"></script>
  </head>
  <body>
    <!-- 为 ECharts 准备一个定义了宽高的 DOM -->
    <div id="main" style="width: 800px; height: 400px"></div>
    <script type="text/javascript">
      // 基于准备好的dom，初始化echarts实例
      var myChart = echarts.init(document.getElementById("main"));

      // 指定图表的配置项和数据
      var option = {
        title: {
          text: "年度人气女主播",
        },
        tooltip: {},
        legend: {
          data: ["人气"],
        },
        xAxis: {
          data: ["周淑怡", "沫子", "团团", "豚豚", "呆妹儿", "冯提莫", "Miss"],
        },
        yAxis: {},
        series: [
          {
            name: "人气",
            type: "bar",
            data: [
              12000000, 13000000, 10000000, 11350000, 11100000, 8600000,
              15000000,
            ],
          },
        ],
      };

      // 使用刚指定的配置项和数据显示图表。
      myChart.setOption(option);
      //好看🌌🌌🌌🌌🌌
    </script>
  </body>
</html>
